<admintpl file="header" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
           <li><a href="{:U('Log/index')}">日志列表</a></li>
			<li><a href="{:U('Log/add')}">新增日志</a></li>
			<li class="active"><a href="#">修改日志</a></li>
        </ul>
       <form method="post" class="form-horizontal " action="{:U('Log/edit_post')}">
            <div class="form-group">
                <label class="col-md-2 control-label"><span class="required" aria-required="true"> * </span>日志主题</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" name="title" value="{$result.title}" placeholder="请输入日志主题" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label"><span class="required" aria-required="true"> * </span>日志类型</label>
                <div class="col-md-2">
                    <select name="type" class="form-control">
                         <option value="日常工作"<eq name="result.type" value="会议"> selected</eq>>日常工作</option>
							<option value="会议"<eq name="result.type" value="会议"> selected</eq>>会议</option>
							<option value="培训"<eq name="result.type" value="培训"> selected</eq>>培训</option>
							<option value="接待客户"<eq name="result.type" value="接待客户"> selected</eq>>接待客户</option>
							<option value="出差"<eq name="result.type" value="出差"> selected</eq>>出差</option>
							<option value="内部讨论"<eq name="result.type" value="内部讨论"> selected</eq>>内部讨论</option>
							<option value="其它"<eq name="result.type" value="其它"> selected</eq>>其它</option>
                    </select>
                </div>
            </div>
			<div class="form-group">
                <label class="col-md-2 control-label">开始时间</label>
                <div class="col-md-2">
					<input type="text" class="form-control WdatePicker startDate"  id = "startDate" name="starttime" placeholder="请输入开始时间" value="{$result.starttime}" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm',maxDate:'#F{ $dp.$D(\'endDate\')}'})" readonly>
                </div>
            </div>
			<div class="form-group">
                <label class="col-md-2 control-label">结束时间</label>
                <div class="col-md-2">
				    <input type="text" class="form-control WdatePicker endDate" id = "endDate" name="endtime" placeholder="请输入结束时间" value="{$result.endtime}" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm',minDate:'#F{ $dp.$D(\'startDate\')}'})" readonly>
                </div>
            </div>
			<div class="form-group">
                <label class="col-md-2 control-label">地址</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" name="address" value="{$result.address}" placeholder="请输入地址">
                </div>
            </div>
			<div class="form-group">
                <label class="col-md-2 control-label"><span class="required" aria-required="true"> * </span>日志内容</label>
                <div class="col-md-4">
                    <textarea class="form-control" name="content" style="height:8em;">{$result.content}</textarea>
                </div>
            </div>
            <div class="form-actions col-md-10 col-md-offset-2">
				<input type="hidden" name="id" value="{$result.id}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:L('EDIT')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
	<script language="javascript" type="text/javascript" src="__PUBLIC__/js/My97DatePicker/WdatePicker.js"></script>
</body>
</html>